package net.hserver.sync.entity;


import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;
import lombok.ToString;
import net.hserver.sync.config.LogLevel;
import net.hserver.sync.config.LogType;
import net.hserver.sync.config.SyncType;

import java.util.Date;

@Data
@ToString
@Table("sync_log")
public class SyncLogEntity {
    @Id(keyType = KeyType.Generator, value= KeyGenerators.flexId)
    private String id;
    private LogType type;
    private LogLevel level;
    private String message;
    private Date createTime;


    public String getTypeDesc(){
        return type.getDesc();
    }
}
